#pragma once
#ifndef _Include_ChessBoard_h_
#define _Include_ChessBoard_h_

class ChessBoard
{
public:
    explicit ChessBoard() {}
    ~ChessBoard() {}

public:
    HRESULT Initialize();
    HRESULT SetPosFill(const CHESS_POS& chess_pos, const PLAYER& fill);
    HRESULT GetRectByChessPos(const CHESS_POS& chess_pos, RECT& rect);
    HRESULT GetChessFillByChessPos(const CHESS_POS& chess_pos, PLAYER& player);
    HRESULT CheckPointInRect(const POINT& mouse, CHESS_POS& chess_pos);

private:
    CHESS_BOARD_INFORMATION m_chess_board_fill;
};
typedef std::unique_ptr<ChessBoard> LPChessBoard;

#endif//_Include_ChessBoard_h_